package priority;

public class PriorityThread extends Thread {
	
	public void run() {
		int i = 0;
		System.out.println(this.getName()
				+ "[우선권: " + this.getPriority() + "] 시작\t");
		while (i < 10000) {
			i = i + 1;	// i++;
			try {
				this.sleep(1);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println(this.getName()
				+ "[우선권: " + this.getPriority() + "] 종료\t");
	}
	
}
